package com.my.study.redisson.register;

import com.my.study.redisson.register.node.RegisterNode;

import java.io.Serializable;

/**
 * 消息
 *
 * @author: yidujun
 * @create: 2021/11/23 15:02
 */
public class Message implements Serializable {
    private static final long serialVersionUID = 6562082413772876145L;

    private String msg;
    private RegisterNode registerNode;

    public Message() {}

    public Message(String msg) {
        this.msg = msg;
    }

    public Message(String msg, RegisterNode registerNode) {
        this.msg = msg;
        this.registerNode = registerNode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public RegisterNode getRegisterNode() {
        return registerNode;
    }

    public void setRegisterNode(RegisterNode registerNode) {
        this.registerNode = registerNode;
    }

    @Override
    public String toString() {
        return "Message{" +
                "msg='" + msg + '\'' +
                ", registerNode=" + registerNode +
                '}';
    }
}
